import React,{useState} from 'react'
import  addtoken  from '../../store/tokenslice'
import { Button, Modal, Space, Toast, Divider } from 'antd-mobile'
import Mymodal from '../../components/Mymodal'
function Index() {
   const [visible, setVisible] = useState(false)
  let tologin=()=>{
    setVisible(true)

  }
  return (
    <div>
      
      {/* 登录按钮 */}
     <Button onClick={()=>tologin()}>登录</Button>
    {/* 弹出框 */}
     <Mymodal visible={visible} setVisible={setVisible}></Mymodal>
    </div>
  )
}

export default Index
